<template>
  <div class="guide">
    <NavBar />
    <div>
      <div class="box">
        <div class="header">
          <img src="../../assets/guide/banner_01.jpg" alt="">
        </div>
        <div class="w1200">
          <div class="mine">
            <img src="../../assets/guide/banner10.png" alt="">
            <img id="btn" src="../../assets/guide/btn.gif" alt="">
          </div>
        </div>
        <div class="mine1">
          <img src="../../assets/guide/banner11.png" alt="">
        </div>
        <!-- <div class="bottom">
            <img src="../../assets/guide/banner_06.png" alt="">
        </div> -->
        <!-- <div class="footer"></div> -->
      </div>
      <!-- tank -->
      <div class="zhezhao"></div>
      <div class="tankuang">
        <h3>免费在线诊股</h3>
        <img src="../../assets/guide/kefu1.jpg" alt="">
        <p>扫一扫加好友</p>
        <img src="../../assets/guide/close.png" id="close" alt="" style="width: 25px">
      </div>
    </div>
    <Footer />
  </div>
</template>
<script>
import NavBar from '@/components/nav-bar'
import Footer from '@/components/footer'
import $ from 'jquery'
export default {
  components: {
    NavBar,
    Footer
  },
  data () {
    return {
      loading: false
    }
  },
  computed: {
    userId () {
      return this.$store.state.me.sysUser.userId
    }
  },
  mounted () {
    $('.tankuang').hide()
    $('.zhezhao').hide()
    $('#btn').click(function () {
      $('.tankuang').show()
      $('.zhezhao').show()
    })
    $('#close').click(function () {
      $('.tankuang').hide()
      $('.zhezhao').hide()
    })
  },
  methods: {
    regEvent () {
      if (this.userId) {
        window.layer.msg('您已经登录！')
        return false
      } else {
        document.documentElement.scrollTop = document.body.scrollTop = 0
        window.loginPop.open('reg')
      }
    }
  }
}
</script>
<style lang="scss" scoped>
.guide {
  background-color: #fff;
  // padding-bottom: 60px;
  .w1200 {
    width: 1200px;
    margin: auto;
  }

  .box {
    width: 100%;
  }

  .header img {
    width: 100%;
  }

  .bottom img {
    width: 100%;
  }
  .mine1 {
    margin-bottom: -50px;
  }
  .mine1 img {
    width: 100%;
  }

  .mine {
    position: relative;
  }

  #btn {
    position: absolute;
    top: 130px;
    left: 485px;
    cursor: pointer;
  }

  /* tank */
  .zhezhao {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
  }

  .tankuang {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 340px;
    height: 398px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0px 0px 21px 0px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    text-align: center;
    padding: 30px 0;
    box-sizing: border-box;
    /* display: none */
  }

  #close {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
  }

  .tankuang h3 {
    font-size: 30px;
    color: #d12b2b;
    line-height: 70px;
  }

  .tankuang p {
    font-size: 20px;
    line-height: 60px;
    color: #d12b2b;
    font-weight: 600;
  }

  .tankuang button {
    width: 61px;
    height: 40px;
    background: rgba(243, 84, 84, 1);
    border-radius: 5px;
    border: none;
    color: #fff;
    margin-top: 20px;
    outline: none;
  }

  .top {
    width: 100%;
    height: 66px;
  }
}
</style>
